package com.lsx.dao;

import com.lsx.pojo.Detailed;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * Created by pc on 2017/11/14.
 */
@Repository
public interface DetailedDao {
    //修改状态
    public int updateStaue(Detailed detal);
    //添加新事项
    public int addAll(Detailed dad);
    //删除事项
    public int delete(int id);
    //查询所有事项根据用户id和类别id
    public List<Detailed> getall(int userId,int cid);
    //根据状态查询事项
    public List<Detailed> getBySta(int sta);
    //根据id查询信息
    public Detailed getById(int id);
}
